//
//  HJHomePageItemModel.m
//  BeautifulMatch
//
//  Created by Host on 16/2/28.
//  Copyright © 2016年 Host. All rights reserved.
//

#import "HJHomePageItemModel.h"


/*
 http://zhekou.repai.com/lws/wangyu/index.php?control=babynews&model=index3&app_id=1066136336&app_oid=fa561552f3235cd0338f6ad2a1bf76a91cfe65c5&app_version=3.0&app_channel=appstore&cid=0
 */
@implementation HJHomePageItemModel

@end

int index1111;

@implementation HJHomePageItemModelData

+ (NSMutableArray * )managerWith:(NSDictionary * )dataDic {
    NSMutableArray * tempArr = [NSMutableArray array];
    NSArray * arr = [dataDic objectForKey:@"list"];
    
    for (NSDictionary * dic in arr) {
        
        HJHomePageItemModel * model = [HJHomePageItemModel new];
        
        model.num_iid = [dic objectForKey:@"num_iid"];
        model.rp_type = [dic objectForKey:@"rp_type"];
        model.title = [dic objectForKey:@"title"];
        model.pic_url = [dic objectForKey:@"pic_url"];
        model.now_price = [[dic objectForKey:@"now_price"] floatValue];
        model.origin_price = [[dic objectForKey:@"origin_price"] floatValue];
        model.discount = [[dic objectForKey:@"discount"] intValue];
        model.total_love_number = [[dic objectForKey:@"total_love_number"] intValue];
        [tempArr addObject:model];
        
    }
    return tempArr;
}


@end
